from datetime import date,timedelta,datetime
d=date(2020,12,12)
deltad=timedelta(days=3)
print(d-deltad)
dt=datetime(2020,12,12,8,8,8,8)
deltadt=timedelta(days=3,hours=3)
print(dt-deltadt)
